import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2022-09-26
 * Time: 20:02
 */
public class Main {
    public static void main(String[] args) {
        ArrayList<ArrayList<Card>> lists=new ArrayList<>();


        ArrayList<Card> hand1=new ArrayList<>();
        ArrayList<Card> hand2=new ArrayList<>();
        ArrayList<Card> hand3=new ArrayList<>();


        lists.add(hand1);
        lists.add(hand2);
        lists.add(hand3);


        Poker poker=new Poker();
        //拿牌
        ArrayList<Card> cards=poker.buyCard();
        poker.display(cards);
        System.out.println();
        //洗牌
        poker.shuffle(cards);
        poker.display(cards);
        System.out.println();
        //发牌
        for (int i = 0; i < lists.size(); i++) {
            poker.allocCard(cards,lists.get(i));
        }
        System.out.println();
        for (int i = 0; i < lists.size(); i++) {
            poker.display(lists.get(i));
        }
        System.out.println();
        System.out.println("剩下的牌为");
        poker.display(cards);


    }
}
